﻿<?php
header("Content-type:text/html;charset=utf-8");
?>
<html>
<head>


</style><head><body>
<meta name="baidu-site-verification" content="gFRNXpjoF8" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<p>
  <style type="text/css">
<!--
<!--html5 speedup-->
<style>
::-webkit-scrollbar{width:8px}
::-webkit-scrollbar-track-piece{background-color:#d2d2d2}
::-webkit-scrollbar-thumb{background:#888;}
::-webkit-scrollbar-thumb:hover{background-color:#999;}
#grid {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -11;
margin: 0;
padding: 0;
overflow: hidden;
background: url() repeat;
}
body,td,th {
	font-family: Georgia, Times New Roman, Times, serif;
}
a {
	font-family: Courier New, Courier, monospace;
	color: #6600FF;
}
a:visited {
	color: #000000;
	text-decoration: none;
}
a:hover {
	color: #000000;
	text-decoration: underline;
}
a:active {
	color: #000000;
	text-decoration: none;
}
a:link {
	color: #000000;
	text-decoration: none;
}
.STYLE30 {color: #000000}
.STYLE32 {font-size: small}
.STYLE33 {color: #000000; font-size: small; }
</style>
<div class="container">
  <p>
    <script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script> 
    <script src="http://lib.sinaapp.com/js/bootstrap/2.3.1/js/bootstrap.min.js"></script>
    <script src="http://cdnjs.bootcss.com/ajax/libs/jquery-backstretch/2.0.3/jquery.backstretch.min.js"></script>
    <script>



	// Create an array of images that you'd like to use
var images = ["http://img.ivsky.com/img/bizhi/pic/201304/26/caise_guangban-014.jpg","http://img.ivsky.com/img/bizhi/pic/201304/26/caise_guangban-017.jpg","http://b.zol-img.com.cn/desk/bizhi/image/5/1440x900/1409624128806.jpg","http://img.ivsky.com/img/bizhi/pic/201304/26/caise_guangban-014.jpg","http://b.zol-img.com.cn/desk/bizhi/image/5/1440x900/1409021422417.jpg"];
	
	// A little script for preloading all of the images
	// It's not necessary, but generally a good idea
	$(images).each(function(){
	   $('<img/>')[0].src = this; 
	});
	
	// The index variable will keep track of which image is currently showing
	var index = 0;
	
	// Call backstretch for the first time,
	// In this case, I'm settings speed of 500ms for a fadeIn effect between images.
	$.backstretch(images[index], {speed: 1000});
	
	// Set an interval that increments the index and sets the new image
	// Note: The fadeIn speed set above will be inherited
	setInterval(function() {
		index = (index >= images.length - 1) ? 0 : index + 1;
		$.backstretch(images[index]);
	}, 10000);




function down(id)
{
	$("#msg").html('Download starting ,Please Wait.');
	$("#msgbox").fadeIn();
	htmlobj=$.ajax({url:"d.php?act=down&id="+id,async:false});
	if(htmlobj.responseText!="error")
	{
	location=htmlobj.responseText;
	$("#msgbox").fadeOut();
	
	}
	else
	{
		$("#msg").html("Download error ,Please try again.");
		$("#msgbox").fadeIn();
		
	}
}

 // popover demo
    $("a[data-toggle=popover]")
      .popover()
      .click(function(e) {


        e.preventDefault()
      })
  </script>
    </marquee>?>
<meta content="width=device-width,user-scalable=no" name="viewport">
<title>设置中心</title>
<meta name="keywords" content="秒赞,秒评,离线秒赞,离线秒评,秒赞,云挂机">
<meta name="description" content=".最有潜力的网站.">
<link rel="stylesheet" type="text/css" href="css/register.css"/>
</head>
<body>
<?php
require 'connect.php';
$qid=$_GET['qid'];
$mysql = mysql_query("SELECT * FROM qqlist WHERE qid='$qid'");
$sql= mysql_fetch_array($mysql);
if($_COOKIE["SHANIUUSER"]!=$sql['myqq'])
{
echo '<div class="signup_container"><h1 class="signup_title">非法闯入！</h1><br>小伙子！你想干嘛？这不是你的QQ！<br><br><center><a href="./user.php">返回用户中心</a></center></div>';
include 'foot.php';
exit();
}
//sid状态
$newsid=$sql['newsid'];
$sidzt['yes']="<font color=black size=2>正常</font>";
$sidzt['yesno']="<font color=black>正常</font>";
$sidzt['no']="<font color=red>失效</font>";
//更新sid
$zdsid=$sql['zdsid'];
$zidongsid['1']="<font color=red>关闭</font>";
$zidongsid['2']="<font color=black>开启</font>";
//秒赞相关
$fwq=$sql['fwq'];
$miaozan['fw1']="<font color=red>关闭</font>";
$miaozan['fw2']="<font color=black>3G赞</font>";
$miaozan['fw3']="<font color=black>触屏</font>";
$miaozan['fw4']="<font color=black>PC</font>";
//秒评相关
$pl=$sql['pl'];
$pinglun['1']="<font color=red>关闭</font>";
$pinglun['2']="<font color=black>3稳</font>";
$pinglun['3']="<font color=black>3高</font>";
$pinglun['4']="<font color=black>触屏</font>";
$pinglun['5']="<font color=black>PC</font>";
//自动发说说相关
$ss=$sql['ss'];
$zdss['1']="<font color=red>关闭</font>";
$zdss['2']="<font color=black>文字</font>";
$zdss['3']="<font color=black>图片</font>";
//离线挂Q相关
$gq=$sql['gq'];
$guaq['1']="<font color=red>关闭</font>";
$guaq['2']="<font color=black>开启</font>";
//刷人气相关
$rq=$sql['renqi'];
$renqi['1']="<font color=red>关闭</font>";
$renqi['2']="<font color=black>开启</font>";
//刷人气相关
$rq=$sql['renqi'];
$renqi['1']="<font color=red>关闭</font>";
$renqi['2']="<font color=black>开启</font>";
//刷留言相关
$sly=$sql['sly'];
$shualiuyan['1']="<font color=red>关闭</font>";
$shualiuyan['2']="<font color=black>开启</font>";
//刷访问相关
$sfw=$sql['sfw'];
$shualiuyan['1']="<font color=red>关闭</font>";
$shualiuyan['2']="<font color=black>开启</font>";
//删除说说
$sss=$sql['sss'];
$shualiuyan['1']="<font color=red>关闭</font>";
$shualiuyan['2']="<font color=black>开启</font>";
//刷说说赞
$sz=$sql['sz'];
$shuazan['1']="<font color=red>关闭</font>";
$shuazan['2']="<font color=black>开启</font>";
//每日签到
$qd=$sql['qd'];
$qiandao['1']="<font color=red>关闭</font>";
$qiandao['2']="<font color=black>开启</font>";
//空间花藤
$ht=$sql['ht'];
$huateng['1']="<font color=red>关闭</font>";
$huateng['2']="<font color=black>开启</font>";


echo '<div class="signup_container"><h1 class="signup_title">设置中心'.$sql['qq'].'</h1>';
$user=$sql['myqq'];
$timesql = mysql_query("SELECT * FROM user WHERE user='$user'");


$Qq=$sql[qq];
echo'<img src="'.'http://q1.qlogo.cn/g?b=qq&nk='.$Qq.'&s=100&t='.time().'">';
echo'<br>';
echo'<br>';
$qQ=$sql[qq];

 function getQQNick($qQ)
{ 

 $str = file_get_contents("http://r.qzone.qq.com/cgi-bin/user/cgi_personal_card?uin=".$qQ); 
 
    $pattern = '/'.preg_quote('"nickname":"','/').'(.*?)'.preg_quote('",','/').'/i'; 
 
    preg_match ( $pattern,$str, $result ); 
 
    return $result[1]; 
}
echo getQQNick($qQ);
echo "<br><img src='./svip.png'; width='45' height='18'> <b><font color='blue'>当前QQ:$qQ</b>";
echo'<br>';
$tsql= mysql_fetch_array($timesql);
echo '<br>注册:<font color=red>'.$tsql['start'].'</font>，到期:<font color=red>'.$tsql['end'].'</font><br>';
echo '<br><font size=3>当前sid状态：'.$sidzt["$newsid"].'   <a class="button" onclick="javascript:open13()">更新sid</a>';
echo '   <a href="srsid.php?qid='.$qid.'">手动输入sid</a></font>';
echo '<div id="signup_forms" class="signup_forms clearfix">

<div class="form_row"><p>&nbsp&nbsp&nbsp</p></div>
<div class="form_row"><font size="3">&nbsp&nbsp&nbsp<font color=red>①、秒赞设置  </font></font> 状态：'.$miaozan["$fwq"].'&nbsp&nbsp&nbsp<a href="edit.php?action=mz&qid='.$qid.'">设置</a></div>
<div class="form_row"><p>&nbsp&nbsp&nbsp</p></div>

<div class="form_row"><p><font size="3">&nbsp&nbsp&nbsp<font color=red>②、秒评设置  </font></font> 状态：'.$pinglun["$pl"].'&nbsp&nbsp&nbsp<a href="edit.php?action=pl&qid='.$qid.'">设置</a></font></div>
<div class="form_row"><p>&nbsp&nbsp&nbsp</p></div>

<div class="form_row"><font size="3">&nbsp&nbsp&nbsp<font color=red>③、离线挂扣  </font></font> 状态：'.$guaq["$gq"].'&nbsp&nbsp&nbsp<a href="edit.php?action=gq&qid='.$qid.'">设置</a></font></div>
<div class="form_row"><p>&nbsp&nbsp&nbsp</p></div>

<div class="form_row"><font size="3">&nbsp&nbsp&nbsp<font color=red>④、自动说说  </font></font> 状态：'.$zdss["$ss"].'&nbsp&nbsp&nbsp<a href="edit.php?action=ss&qid='.$qid.'">设置</a></font></div>
<div class="form_row"><p>&nbsp&nbsp&nbsp</p></div>

<div class="form_row"><font size="3">&nbsp&nbsp&nbsp<font color=red>⑤、每日签到  </font></font> 状态：'.$qiandao["$qd"].'&nbsp&nbsp&nbsp<a href="edit.php?action=qd&qid='.$qid.'">设置</a></font></p></div>
<div class="form_row"><p>&nbsp&nbsp&nbsp</p></div>

<div class="form_row"><p><font size="3">&nbsp&nbsp&nbsp<font color=red>⑥、空间花藤  </font></font> 状态：'.$huateng["$ht"].'&nbsp&nbsp&nbsp<a href="edit.php?action=ht&qid='.$qid.'">设置</a></font></p></div>
<div class="form_row"><p>&nbsp&nbsp&nbsp</p></div>

<div class="form_row"><p><font size="3">&nbsp&nbsp&nbsp<font color=red>⑦、刷说说赞  </font></font> 状态：&nbsp&nbsp<a href="edit.php?action=szan&qid='.$qid.'">点击设置</a></font></p></div>
<div class="form_row"><p>&nbsp&nbsp&nbsp</p></div>

<div class="form_row"><p><font size="3">&nbsp&nbsp&nbsp<font color=red>⑧、互刷留言  </font></font> 状态：'.$shualiuyan["$sly"].'&nbsp&nbsp&nbsp<a href="edit.php?action=sly&qid='.$qid.'">设置</a></font></p></div>
<div class="form_row"><p>&nbsp&nbsp&nbsp</p></div>

<div class="form_row"><p><font size="3">&nbsp&nbsp&nbsp<font color=red>⑨、互访空间  </font></font> 状态：'.$shualiuyan["$sfw"].'&nbsp&nbsp&nbsp<a href="edit.php?action=sfw&qid='.$qid.'">设置</a></font></p></div>
<div class="form_row"><p>&nbsp&nbsp&nbsp</p></div>

<div class="form_row"><p><font size="3">&nbsp&nbsp&nbsp<font color=red>⑩、删除说说  </font></font> 状态：'.$shualiuyan["$sss"].'&nbsp&nbsp&nbsp<a href="edit.php?action=sss&qid='.$qid.'">设置</a></font></p></div>
<div class="form_row"><p>&nbsp&nbsp&nbsp</p></div>


</div>';
echo '<tr><br><td colspan="2" align="center"><a href="./user.php">返回用户中心</a></td></tr>';
echo '</body></html>';
?>
   <ul class="buttons">
                                    <li><a href="#" onClick="source('table_sort'); return false;"></a></li>
                                </ul>
    <div class="dialog" id="source" style="display: none;" title="Source"></div>  


<STYLE type=text/css> 
BODY{cursor:url('http://www.xiaoyewl.net/shubiao/1.cur'), url(http://www.xiaoyewl.net/shubiao/1.cur), auto;}
A{cursor:url('http://www.xiaoyewl.net/shubiao/1.cur'), url(http://www.xiaoyewl.net/shubiao/1.cur), auto;}
</STYLE>

</head>
 <style type="text/css">
</style><head>

<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="./zDrag.js"></script>
<script type="text/javascript" src="./zDialog.js"></script>
</head>



<script type="text/javascript">
function open13()
{
	var diag = new Dialog();
	diag.Title = "更新SID";
	diag.Width = 275;
	diag.Height = 155;
	diag.URL = "./qplus.php";
	diag.show();
}</script>